package com.eisula.sc.database;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Table(name = "t_vivienda_mision")
@Proxy(lazy = false)
public class ViviendaMision {

	private int id;

	private Vivienda viviendaId;
	private Mision misionId;

	// --------------------------------------------------------------------------------

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public Vivienda getViviendaId() {
		return viviendaId;
	}

	public void setViviendaId(Vivienda viviendaId) {
		this.viviendaId = viviendaId;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public Mision getMisionId() {
		return misionId;
	}

	public void setMisionId(Mision misionId) {
		this.misionId = misionId;
	}

	// --------------------------------------------------------------------------------

}
